#ifndef BOTCODE_H_INCLUDED
#define BOTCODE_H_INCLUDED


//#include "genobotsMain.h"
#include <vector>
#include <wx/textfile.h>
#include "defines.h"
using namespace std;

class codeline { // a line in the code (command + parameters)
  public:
    codeline();
    codeline(wxString cmd, int cmdint);
    wxString command;
    int commandINT;
    int intPrm1;
    int intPrm2;
    int intPrm3;
};

class botcode { // the code of a bot
  public:
    botcode();
    ~botcode();
    void addLine(codeline * line); // add a codeline to the code with command cmd
    wxString getCode();             // return the botcode as a string
    void printCode();
    wxString readfile(wxString filename);
  //private:
    vector<codeline *> code;
};

#endif // BOTCODE_H_INCLUDED
